package com.transaction.controller;

import com.transaction.config.R;
import com.transaction.domain.SysCountry;
import com.transaction.service.SysCountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("country")
public class CountryController {


    @Autowired
    SysCountryService sysCountryService;

    @GetMapping("getlist")
    public R getlist(){
        List<SysCountry> list = sysCountryService.list();
        return R.successed(list);
    }
}
